<include file="Public:header" />
<include file="Public:left" />
	<form action="{:url('activity/egg_add')}" method="post" enctype="multipart/form-data" id="brandForm">
	<input type="hidden" name="id" value="{$res.id}"/>
     <section>
      <h2><strong>奖品编辑</strong></h2>
      <ul class="ulColumn2">
            <li>
            <span class="item_name" style="width:120px;">奖品名称：</span>
            <input type="text" value="{$res.name}" class="textbox textbox_295" name="name" id="name" placeholder="奖品名称"/>
            </li>
    
            <li>
            <span class="item_name" style="width:120px;">中奖概率：</span>
            <input type="text" value="{$res.odds}" class="textbox textbox_295" name="odds" id="odds" placeholder="中奖概率"/>
            </li>
    
            <li>
            <span class="item_name" style="width:120px;">排序：</span>
            <input type="text" value="{$res.sort}" class="textbox textbox_295" name="sort" id="sort" placeholder="值越大越靠前"/>
            </li>
	   
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>
     <!--tabStyle-->
     <script type="text/javascript">
     $(document).ready(function(){
		 //tab
		 $(".admin_tab li a").click(function(){
		  var liindex = $(".admin_tab li a").index(this);
		  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
		  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		 });
		 $(".link_btn").click(function(){
	
			$("#brandForm").submit();
		 });

		 });
     </script>

 </div>
</section>
</body>
</html>
